package com.example.demo.action

import org.springframework.stereotype.*
import xyz.erupt.annotation.sub_erupt.*
import xyz.erupt.tpl.annotation.*

@EruptTpl(engine = Tpl.Engine.Thymeleaf)
@Service
class ThymeleafAction {
    @TplAction("thymeleaf.html")
    fun dashboard2(): Map<String, Any> {
        val map: MutableMap<String, Any> = HashMap()
        map["list"] = arrayOf(
            "E", "R", "U", "P", "T", "-", "-", "-", "-", "-", "-"
        )
        map["color"] = arrayOf(
            "#eb776e", "#56aad6", "#69d5e7", "#f686e5", "#29ae94", "#fbd364",
            "#4da1ff", "#ff6e4b", "#ffc524", "#e07de9", "#42e9e1", "#a9f", "#a90",
            "#09f", "#555", "#92abff"
        )
        return map
    }
}